package com.by.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.by.model.entity.Blog;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

/**
 * @author lzh
 */
@Mapper
public interface BlogMapper extends BaseMapper<Blog> {

    /**
     * 批量更新博客点赞数
     *
     * @param countMap 博客ID和对应的点赞数映射
     */
    void batchUpdateThumbCount(@Param("countMap") Map<Long, Long> countMap);
}




